package 设计模式.建造者模式.demo1;

//具体的工人
public class Worker extends Builder {
    private Peoduct peoduct;
    public  Worker(){
        peoduct = new Peoduct();
    }
    @Override
    void buildA() {
        peoduct.setBuildA("地基");
        System.out.println("地基！");
    }

    @Override
    void buildB() {
        peoduct.setBuildB("钢筋工程");
        System.out.println("钢筋工程！");
    }

    @Override
    void buildC() {
        peoduct.setBuildC("铺电线");
        System.out.println("铺电线！");
    }

    @Override
    void buildD() {
        peoduct.setBuildD("粉刷");
        System.out.println("粉刷！");
    }

    @Override
    Peoduct getPeoduct() {
        return peoduct;
    }
}
